package com.example.yimai;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAsync
@EnableScheduling
@EnableElasticsearchRepositories(basePackages = "com.example.yimai.repository")
@MapperScan("com.example.yimai.mapper")
public class YimaiApplication {

	public static void main(String[] args) {
		SpringApplication.run(YimaiApplication.class, args);
	}

}
